package main

import (
	"fmt"
	"log"
	"net/http"
	"os"
)

var cname string
var cdes string

func main() {
	// loadConfigFile()
	port := os.Getenv("pppooorrrttt")
	http.HandleFunc("/hello", SayHello)
	if port == "" {
		port = "8888"
	}
	log.Println("0.0.0.0:" + port)
	http.ListenAndServe("0.0.0.0:"+port, nil)
}

func SayHello(w http.ResponseWriter, req *http.Request) {
	for k, v := range req.Header {
		fmt.Println(k, v)
	}
	w.Write([]byte("hello"))
}
